<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>增量任务管理</title>
<@fm.header />
<link rel="stylesheet" type="text/css" href="/resources/css/uploadify/uploadify.css">
<script type="text/javascript" src="/resources/js/common.js"></script>
<script type="text/javascript" src="/resources/js/dataInc/dataInc.js"></script>
</head>
<body class="cmp-list-body">
<div id="tb" style="padding:3px">
    <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="doAdd();">新增</a>
        <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="doEdit();">修改</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="updateStatus('1');">启动</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="updateStatus('0');">关闭</a>
</div>
<table id="tt" title="增量任务管理 " 
	 toolbar="#tb" rownumbers="true" idField="id"
	singleSelect="true"   pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]">  
    <thead>
        <tr>
            <th align="center" width="25%" field="incAlias">任务名称</th>
            <th align="center" width="15%" field="incType" formatter="incTypeFormatter">增量类型</th>
            <th align="center" width="15%" field="incName">增量key</th>
            <th align="center" width="15%" field="incValue">增量值</th>
            <th align="center" width="12%" field="startDay">执行天</th>
            <th align="center" width="10%" field="intervalTime">增量间隔</th>
		    <th align="center" width="5%" field="status" formatter="statusFormatter">状态</th>
		    <th align="center" width="15%" field="modifyTime">修改时间</th>
        </tr>
    </thead>   
</table>

<div id="addWin" class="easyui-window" title="任务管理管理|新增修改" closed="true" collapsible="false" minimizable="false"  maximizable="false" style="width:500px;height:480px"   
        data-options="iconCls:'icon-save',modal:true">
     <div fit="true">
        <form id="addForm"  method="post">
            <input type="hidden" id="idId"  name="id" />   
           <table>
              <tr>
		          <td align="left">任务名称</td>
		          <td><input  class="easyui-validatebox" data-options="required:true"  name="incAlias" id="incAliasId" style="width:300px" />
		            </td>
	          </tr>
		      <tr>
		          <td align="left">增量类型</td>
		          <td> 
		              <select class="easyui-combobox" id="incTypeId" name="incType" panelHeight="auto" style="width:155px" data-options="required:true">
	                	<option value="1" selected = "selected">int型增量</option>
	                	<option value="2" >时间型增量</option>
		              </select>
		         </td>
		      </tr>	
		      <tr>
		          <td align="left">增量key</td>
		          <td><input id="incNameId" class="easyui-validatebox" data-options="required:true"  name="incName" style="width:300px"></input></td>
		      </tr>
		      <tr>
		          <td align="left">增量值</td>
		          <td><input id="incValueId" class="easyui-validatebox" data-options="required:true"  name="incValue" style="width:300px"></input></td>
		      </tr>
		      <tr>
		          <td align="left">执行天</td>
		          <td><input id="startDayId" class="easyui-validatebox" name="startDay" style="width:300px"></input></td>
		      </tr>
		      <tr>
		          <td align="left">增量间隔</td>
		          <td><input id="intervalTimeId" class="easyui-numberbox" name="intervalTime" style="width:300px"></input></td>
		      </tr>
		       <tr>
		          <td align="left">来源sql</td>
		          <td><textarea id="sourceSqlId" data-options="multiline:true,required:true" class="easyui-validatebox" name="sourceSql" style="width:300px;height:60px"></textarea></td>
		      </tr>
		       <tr>
		          <td align="left">目标sql</td>
		          <td><textarea id="targetSqlId" data-options="multiline:true,required:true" class="easyui-validatebox" name="targetSql" style="width:300px;height:60px">
		          </textarea>
		          </td>
		      </tr>
		      <tr>
		          <td align="left">字段转义</td>
		          <td><textarea id="mappingStrId" data-options="multiline:true,required:true" class="easyui-validatebox" name="mappingStr" style="width:300px;height:30px">
		          </textarea>
		          </td>
		      </tr>
		      
           </table>
        </form>
        <div style="padding: 25px; text-align: center;">
            <a href="#" class="easyui-linkbutton" onclick="cancel();">取消</a>
            <a href="#" class="easyui-linkbutton"  onclick="save();">保存</a> 
        </div>
    </div>
</div>

</body>
</html>